<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>json测试</title>
</head>
<body>
<script type="text/javascript" src="./jquery-3.5.1.js"></script>
<script type="text/javascript" src="./IdCardUtils.js"></script>
<script>
    $.getJSON("./all.json", function (res){
        var str = "";
        var data = res.RECORDS;
        console.log(data.length);
        var j=0;
        for(var i=0;i<data.length;i++){
            var card_id = (data[i].card_id).trim();
            if(card_id.length == 18 && !IdentityCodeValid(card_id)){
                str+=("'"+card_id+"'"+",");
                j++;
            }
        }
        console.log(str);
        console.log(j);
    });
</script>
</body>
</html>